-- GENERATED SPELL FOR [Tidewalker Warrior] --


function spell0_21225(pUnit, Event) --@Bloodthirst,n/a--
pUnit:FullCastSpellOnTarget(39070,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21225', 0, 1)
end

function spell1_21225(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(38664,pUnit)
pUnit:RegisterEvent('Sorts_21225', 15000, 1)
end

function spell2_21225(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(39069,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21225', 549, 1)
end

function Sorts_21225(pUnit, Event)
local choix_sorts_21225 = math.random(0, 2)
if choix_sorts_21225 == 0 then
pUnit:RegisterEvent('spell0_21225', 1, 1)
end
if choix_sorts_21225 == 1 then
pUnit:RegisterEvent('spell1_21225', 1, 1)
end
if choix_sorts_21225 == 2 then
pUnit:RegisterEvent('spell2_21225', 1, 1)
end
end

function mob21225_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21225', math.random(1500, 3000), 1)
end

function mob21225_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21225_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21225_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21225, 1, 'mob21225_Action')
RegisterUnitEvent(21225, 2, 'mob21225_Leave')
RegisterUnitEvent(21225, 3, 'mob21225_Kill')
RegisterUnitEvent(21225, 4, 'mob21225_Die')
